@extends('Home.loveser.index')
@section('page')
 <div class="col-xs-6" >
          <div class="row">
            <div class="row">
                <div class="col-md-7 ">
                   <h4> <b>救助申请</b></h4>
                </div>
	                <div class="col-md-7 ">
	                  <div  style="border:1px solid #999; width:600px;min-height:400px">
					 @foreach($cates as $k=>$v)
					 @if($v->status == 1)
	                   <div class="col-md-4" style="border:1px solid #FCFCFC; width:140px;height:170px">
	                   			<a style="color:black;" href="{{url('/homes/ask/add',['id'=>$v->id])}}">
	                   			<img src='{{asset("$v->pic")}}' width="120px" height="120px">
	                   			<center>
	                   			<b>{{$v->tname}}</b>
	                   			</center>
								</a>
	                   </div>
	                   @endif
	                 @endforeach
	                </div>
	                </div>
            </div>
         
			
          </div>
     </div>

            <div class="col-xs-3 " >
                    <div class="row">
            @if (session('success'))
	    
			    <div id="successInfo" class="alert alert-success alert-dismissable col-xs-4 col-xs-offset-3" style="position: absolute;top: 70px;">
		            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		            {{ session('success') }}
		        </div>     
			@endif
			@if (session('error'))
			    
			    <div id="errorInfo" class="alert alert-success alert-dismissable col-xs-4 col-xs-offset-3" style="position: absolute;top: 70px;">
		            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		            {{ session('error') }}
		        </div>     
			@endif
     			</div>
            </div>   
        </div>
    </div>
</div>
</div>
@endsection
@section('js')
	<script>
	
		// 限制时间
	  setTimeout(function(){
	  	$('#successInfo').hide(1000);
	  	$('#errorInfo').hide(1000);
	  },2000);

	  
	</script>
@endsection
